package com.yuejian.neusoft.yuejian_24.service;

import com.yuejian.neusoft.yuejian_24.javaBean.Collected;
import com.yuejian.neusoft.yuejian_24.javaBean.Master;
import com.yuejian.neusoft.yuejian_24.javaBean.Success;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;



public interface MasterService {
    @GET("index.php/Master/masterlist")
    Call<List<Master>> allmaster();

    @GET("index.php/Master/getmasterinfo")
    Call<Master> getmaster(
            @Query("master_id")String master_id
    );
    @GET("index.php/Master/follow")
    Call<Success> follow(
            @Query("master_id")String master_id,
            @Query("uid")String uid,
            @Query("type")String type
    );

    @GET("index.php/Master/isCollected")
    Call<Collected> isCollected(
            @Query("master_id")String master_id,
            @Query("uid")String uid,
            @Query("type")String type
    );
}
